﻿using System;
using System.Windows.Forms;

namespace ALDIOrganizer
{
    public partial class ChooseWeek : Form
    {
        public ChooseWeek()
        {
            InitializeComponent();
            btnCurrentWeek_Click(null, null); // setting the default value
        }

        public DateTime GetChoice
        {
            get
            {
                return dtpWeek.Value.MondayOfThatWeek();
            }
        }

        private void btnCurrentWeek_Click(object sender, EventArgs e)
        {
            dtpWeek.Value = DateTime.Now.Date;
        }
        
    }
}
